<%--@elvariable id="type" type="java.lang"--%>
<%--@elvariable id="judge" type="java.lang"--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <%@include file="../../../includes/common.jsp" %>
    <title></title>
</head>
<body>
</body>
</html>
<script type="text/javascript">
    $(function () {
        if ("${type}"=="新增") {
            if (${judge}) {
                $.messager.alert("成功", "新增成功！", "", function () {
                    parent.$("#dataEdit").dialog('close');
                    parent.query();
                })
            } else {
                $.messager.alert("提示", "上传失败，请检查课件是否标准！", "", function () {
                    parent.$("#dataEdit").dialog('close');
                    parent.query();
                })
            }
        }else{
            if (${judge}) {
                $.messager.alert("成功", "修改成功！", "", function () {
                    parent.$("#dataEdit").dialog('close');
                    parent.query();
                })
            } else {
                $.messager.alert("提示", "修改失败，请检查图片是否标准！", "", function () {
                    parent.$("#dataEdit").dialog('close');
                    parent.query();
                })
            }
        }

    })
</script>